package com.lagou.bean;

import com.lagou.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

@Component
public class ConsumerComponent {

    @Reference
    private HelloService helloService;

    public String sayHello01(String name, int timeToWait) {
        return helloService.sayHello01(name, timeToWait);
    }
    public String sayHello02(String name, int timeToWait) {
        return helloService.sayHello02(name, timeToWait);
    }
    public String sayHello03(String name, int timeToWait) {
        return helloService.sayHello03(name, timeToWait);
    }

}
